﻿#pragma once
#include <QVector>
#include <QMutex>
#include "igbtprotocol.h"

class FrameMgr
{
public:
	FrameMgr();
	~FrameMgr();

protected:
	QMutex _mutex;
    QVector <IGBTProtocol::BaseFrame*> _frames;

public:
    void appendFrame(IGBTProtocol::BaseFrame* frame);
    IGBTProtocol::BaseFrame* getOldestFrame();
	void clear();
};



